<style>
    label {
        width: 28%;
        padding-right: 10px;
        text-align: right;
        float: left;
    }
</style>
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

?>
<?php $form = ActiveForm::begin(['id' => 'rule-form', 'enableAjaxValidation' => true, 'enableClientValidation' => false, 'options' => ['class' => 'form-validate']]); ?>

<table width="90%" class="table-form">
    <tr>
        <th class="zx-goods-table" style="width:30%;"><?= $model->attributeLabels()['name']; ?></th>
        <td><?= $form->field($model, 'name', ['template' => '{input}{error}'])->textInput([ 'class' => 'input-text', 'placeholder' => $model->attributeLabels()['name'], 'id' => $model->attributeLabels()['name']]); ?>
        </td>
    </tr>
    <tr>
        <th class="zx-goods-table" style="width:30%;"><?= $model->attributeLabels()['className']; ?></th>
        <td><?= $form->field($model, 'className', ['template' => '{input}{error}'])->textInput(['class' => 'input-text', 'placeholder' => $model->attributeLabels()['className']]); ?></td>
    </tr>
</table>

<div class="m_top_10 btn" style="display: none">
    <?= Html::submitButton('提交', ['class' => "button", 'id' => 'dosubmit']) ?>
</div>
<?php ActiveForm::end(); ?>